System and method of embedding a two dimensional code with concealed secure message

ABSTRACT

The present invention embodies a technique to embed a graphic representation and/or a concealed message such as but not limited to two dimensional codes such as quick response (QR) code matrices, fingerprints, coded fingerprint representations, iris imagery, iris coded representation, biometric hashes, palm print or portraits into a QR matrix code. In the case where biometric data such as finger print representation, iris coded representation or biometric hashes are encoded into the embedding, suitable binary representation of those patterns are generated before encoding. These concealed messages can be further encrypted using any cryptographic method such as public or private key or other suitable encrypting mechanisms adapted to the concealed message. For an implementation of the present invention in which a graphic representation is embedded into the code, the embedding process is based on an optimization method by which the color or luminance of the embedding is modified so as to minimize the visual distortion with respect to a reference image while maintaining the probability of decoding error of the standard and concealed code under a predetermined limit.

REFERENCE TO RELATED APPLICATION

This application claims inventions which were disclosed in Provisional Patent Application Number 62/167,558, filed May 28, 2015, entitled “SYSTEM AND METHOD OF EMBEDDING A TWO DIMENSIONAL CODE WITH CONCEALED SECURE MESSAGE”. The benefit under 35 USC §119(e) of the above mentioned United States Provisional Application is hereby claimed, and the aforementioned application is hereby incorporated herein by reference.

FIELD OF THE INVENTION

This invention relates to a technique to embed a graphic representation and/or a concealed message into a quick response (QR) matrix code.

BACKGROUND OF THE INVENTION

Quick Response (QR) code is a type of matrix barcode (or two-dimensional barcode), which is a machine-readable optical label that contains information about the item to which it is attached. Applications of QR code include product tracking, item identification, time tracking, document management, and general marketing.

U.S. Pat. No. 8,144,922 to Kawabe Discloses a method in which a two-dimensional code that represents information by means of a cell dot distribution pattern, formed by having a plurality of colored cells and a logo mark, are superimposed.

U.S. Pat. No. 8,851,392 to Shinotami Discloses an apparatus comprising display control unit which displays image-added two-dimensional codes in which a two-dimensional code presenting given information is superimposed on a first given image to show at least a portion of the two-dimensional code within a region where the first given image is shown

US Patent 2013/0112760 to Schory Discloses Systems and methods for the automated generation of QR codes with embedded images therein are provided. The QR code has an active, machine-readable portion and a background portion. An example system comprises an image identification module to identify a human-readable image.

US Patent 2013/0026241 to Sakahashi Discloses a sevice, and a system, applications and an associated Ecosystem for the consistent and reliable production, creation, generation, management and utilization of two-dimensional (‘2D’) barcodes (‘Codes’) featuring embedded Images, designating the alignment position and alignment size of the embedding Images in 2D Codes and enabling the corresponding outputted Code files by the Device System to be downloaded and or showcased digitally

US Patent 2014/0144996 to Friedman Discloses A method of generating a readable matrix code image encoding a message based on an input image and a readable matrix coding specification, comprising: calculating function areas readable to comply with a function patterns specification; determining an extent of free cells and derived cells according to a code word specification; calculating decode input values for free cells such that the appearance of the free cells compared to respective areas of the input image complies with a visual perceptual similarity criterion.

SUMMARY OF THE INVENTION

The present invention embodies a technique to embed a graphic representation and/or a concealed message such as but not limited to two dimensional codes such as quick response (QR) code matrices, fingerprints, coded fingerprint representations, iris imagery, iris coded representation, biometric hashes, palm print or portraits into a QR matrix code. In the case where biometric data such as finger print representation, iris coded representation or biometric hashes are encoded into the embedding, suitable binary representation of those patterns are generated before encoding. These concealed messages can be further encrypted using any cryptographic method such as public or private key or other suitable encrypting mechanisms adapted to the concealed message. For an implementation of the present invention in which a graphic representation is embedded into the code, the embedding process is based on an optimization method by which the color or luminance of the embedding is modified so as to minimize the visual distortion with respect to a reference image while maintaining the probability of decoding error of the standard and concealed code under a predetermined limit.

BRIEF DESCRIPTION OF THE FIGURES

The accompanying figures, where like reference numerals refer to identical or functionally similar elements throughout the separate views and which together with the detailed description below are incorporated in and form part of the specification, serve to further illustrate various embodiments and to explain various principles and advantages all in accordance with the present invention.

FIG. 1 shows an example of the embedding process in which a standard and concealed messages and an image representation is embedded;

FIG. 2 shows another example of the embedding process in which no image representation is provided; and

FIG. 3 shows an example of the decoding process.

Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of embodiments of the present invention.

DETAILED DESCRIPTION

The present system and method according to the subject embodies a technique to embed a graphic representation and/or a concealed message such as but not limited to 2 dimensional codes such as QR code matrices, fingerprints, coded fingerprint representations, iris imagery, iris coded representation, biometric hashes, palm print or portraits into a QR matrix code. In the case where biometric data such as finger print representation, iris coded representation or biometric hashes are encoded into the embedding, suitable binary representation of those patterns are generated before encoding. These concealed messages can be further encrypted using any cryptographic method such as public or private key or other suitable encrypting mechanisms adapted to the concealed message.

For an implementation of the present method in which a graphic representation is embedded into the code, the embedding process is based on an optimization method by which the color or luminance of the embedding is modified so as to minimize the visual distortion with respect to a reference image while maintaining the probability of decoding error of the standard and concealed code under a predetermined limit.

The generated image can be displayed on a display unit such as a LED displays, LCD display, E-Ink (electrophoretic ink), backlit displays, or light boxes.

Encoding Process

The encoding process takes as inputs concealed and standard messages used to calculate a standard QR code and a second concealed code which can be a QR code, other type of matrix code or an unstructured set of information bits super imposed over the structure of the standard QR code. The concealed message can be encrypted or unencrypted using a set of cryptographic keys. In addition to the concealed message an image representation which can be color, grayscale or binary can be also embedded into the code. This graphic representation can contain further concealed information embedded using a transformation technique such as but not limited to watermarking. The concealed message can be encoded in the embedding by means of a spectral weighting mask which is derived from another set of cryptographic keys. The image observed by the concealed QR decoder is a linear combination of the decoding masks and the different spectral layers of the captured image. These layers can include the Red, Green and Blue channels as well as other spectral channels such as but no limited to the near Infrared, short wave infrared and ultra violet bands. An example of this embedding process in which a standard and concealed messages and an image representation is embedded is depicted in FIG. 1.

In this example the pixel luminance of concealed and standard embedded codes are calculated as a function of the corresponding QR code values, the intensity values of the input graphic representation Y (i, j) and the spectral masks. Some of the pixels of the embedded code are replaced by pixels of the image and the remaining pixels are modified according to their location with respect to the corresponding QR code module. The luminance of the standard embedding can be expressed as

${Y_{s}\left( {i,j} \right)} = \left\{ \begin{matrix} {{\beta \mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{45mu}} & {{{is}\mspace{14mu} {modified}\mspace{14mu} {and}\mspace{14mu} {Q_{s}\left( {i,j} \right)}} = 1} \\ {{\alpha \mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} {modified}\mspace{14mu} {and}\mspace{14mu} {Q_{s}\left( {i,j} \right)}} = 0} \\ {{\beta_{s}\mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} a\mspace{14mu} {center}\mspace{14mu} {pixel}\mspace{14mu} {and}\mspace{14mu} {Q_{s}\left( {i,j} \right)}} = 1} \\ {{\alpha_{s}\mspace{14mu} {if}\mspace{20mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} a\mspace{14mu} {center}\mspace{14mu} {pixel}\mspace{14mu} {and}\mspace{14mu} {Q_{s}\left( {i,j} \right)}} = 0} \\ {Y\left( {i,j} \right)} & {{otherwise}\;} \end{matrix} \right.$

and the luminance of the concealed embedded code is given by

${Y_{c}\left( {i,j} \right)} = \left\{ \begin{matrix} {{\gamma \mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{45mu}} & {{{is}\mspace{14mu} {modified}\mspace{14mu} {and}\mspace{14mu} {Q_{c}\left( {i,j} \right)}} = 1} \\ {{\delta \mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} {modified}\mspace{14mu} {and}\mspace{14mu} {Q_{c}\left( {i,j} \right)}} = 0} \\ {{\beta_{c}\mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} a\mspace{14mu} {center}\mspace{14mu} {pixel}\mspace{14mu} {and}\mspace{14mu} {Q_{c}\left( {i,j} \right)}} = 1} \\ {{\alpha_{c}\mspace{14mu} {if}\mspace{14mu} \left( {i,j} \right)}\mspace{14mu}} & {{{is}\mspace{14mu} a\mspace{11mu} {center}\mspace{14mu} {pixel}\mspace{14mu} {and}\mspace{14mu} {Q_{c}\left( {i,j} \right)}} = 0} \\ {{Y\left( {i,j} \right)}{h\left( {i,j} \right)}} & {otherwise} \end{matrix} \right.$

where h(i, j) is generated independently from the first set of cryptographic keys provided. The eight luminance levels are optimized independently for each local window as wells as the location of center and modified pixels and then combined to generate the final embedding.

In another example of the present system where no image representation is provided as depicted in FIG. 2, the QR embedding takes one uniform luminance value or color for all the pixels of each QR code cell. The concealed and standard QR codes are divided into local windows and for each local window the luminance of the concealed embedding Y_(c) and standard Y_(s) luminance images are modified to take two possible values depending on the corresponding values of the concealed code Qc and standard code Qs as follows

${Y_{c}\left( {i,j} \right)} = \left\{ {{\begin{matrix} {{\alpha_{c}\mspace{14mu} {if}\mspace{14mu} {{Qc}\left( {i,j} \right)}} = 0} \\ {{\beta_{c}\mspace{14mu} {if}\mspace{14mu} {{Qc}\left( {i,j} \right)}} = 1} \end{matrix}{Y_{s}\left( {i,j} \right)}} = \left\{ \begin{matrix} {{\alpha_{s}\mspace{14mu} {if}\mspace{14mu} {{Qs}\left( {i,j} \right)}} = 0} \\ {{\beta_{c}\mspace{14mu} {if}\mspace{14mu} {{Qs}\left( {i,j} \right)}} = 1} \end{matrix} \right.} \right.$

The four luminance parameters α_(s), β_(s), α_(c), β_(c) are obtained as the result of and optimization process which is performed independently for each local window and in the end the values are combined to generate the QR embedding containing both concealed and standard messages.

In yet another example of the present system where no image representation is provided, a concealed bit string is embedded into sub cells of the standard QR code where all colors in the sub cell provide approximately the same gray scale luminance. These sub cells when multiplied by the different spectral masks provide different information bits effectively increasing the bit capacity of the concealed embedding. In an extension of this example the concealed code is encoded in sub cells of the standard QR code cell, each one taking a different uniform color.

In yet another example of the present system, the graphic image matrix is divided into a set of image sequences which are generated through a two dimensional micro lens array or micro-diffractive optic element or digital optical elements (DOE) array or holographic elements, where the generated embedding is on a set of lenticular image sequences.

These concealed messages can be further encrypted using any cryptographic method such as public or private key or other suitable encrypting mechanisms adapted to the concealed message. For example, the encryption may use a public key cryptography to produce the cypher text to be embedded in the QR code and a private key can be used to extract the biometric bit sequences. Any of a number of public key encryption systems may be used such as pretty good privacy (PGP) systems. The symmetric or public key can be configured to randomly select the color/grayscale space dimensions on a pixel by pixel, or group of pixels by group of pixels basis, so that the secure bit string sequence is embedded into a subspace of the ultraviolet, visible, and infrared spectral bands such as, but not limited to RGB, NIR, SWIR UV, CYM or CMYK color spaces.

A reader camera equipped with a specially designed optic spectral filter may be employed to implement the functions of block certain optical spectra designed in coordination with the initial coding process so that it can de-mask and reveal hidden information. In addition, an illumination or excitation energy source may be employed to cause the changes of specific spectra in all/part of the spatial locations on the code. Such illumination or excitation energy sources can be any electromagnetic energy sources within any band of electromagnetic spectrum such as Gamma-ray, x-ray, UV/VIS/NIR/IR, microwave, millimeter waves or other types of energy sources such as acoustic wave, etc. The spectra changes may be caused by various energy conversion mechanisms, such as x-ray fluorescent effect, fluorescent effect, Raman effect, wavelength up-conversion, multi-photon emission effect, other non-linear effect such as second harmonic generation (SHG). It is also possible that different codes are detected and decoded at the different time of a day where the QR code is under the illumination of the natural sun light during the day and artificial light during the night.

Probability of Detection Error

In the first example of the system where an image representation is incorporated into the QR embedding, the probability of error model is also calculated by considering the probabilities that a particular element is classified as the opposite of its correct value in the corresponding QR code (Standard or concealed)

P _(Qs) _(err) =P(Y _(s)(i, j)<t _(s)(i, j)|Qs(i, j)=0)P(Qs(i, j)=0)+P(Y _(s)(i, j)>t _(s)(i, j)|Qs(i, j)=1)P(Qs(i, j)=1)

P _(Qc) _(err) =P(Y _(c)(i, j)<t _(c)(i, j)|Qc(i, j)=0)P(Qc(i, j)=0)+P(Y _(c)(i, j)>t _(c)(i, j)|Qc(i, j)=1)P(Qc(i, j)=1)

where the binarization thresholds t_(s)(i, j) and the t_(c) (i, j) are a function of the set of luminance parameters β, α, β_(s), α_(s) and the image intensity Y(i, j) for the case of the standard code and a function of γ, δ, β_(c), α_(c) and the spectral masks h(i, j) for the concealed code.

Other models are also possible considering different binarization methods or an ensemble of methods in such a way that the model approximates the response of a set of different decoders.

In a second example of the system the values of α_(s), α_(s), α_(c), β_(c) are optimized for each local window in order to minimize the probability of detection error for both the concealed and the standard QR code detection defined as

P _(Qs) _(err) =P(Y _(s)(i, j)<t _(s)(i, j)|Qs(i, j)=0)P(Qs(i, j)=0)+P(Y _(s)(i, j)>t _(s)(i, j)|Qs(i, j)=1)P(Qs(i, j)=1)

P _(Qc) _(err) =P(Y _(c)(i, j)<t _(c)(i, j)|Qc(i, j)=0)P(Qc(i, j)=0)+P(Y _(c)(i, j)>t _(c)(i, j)|Qc(i, j)=1)P(Qc(i, j)=1)

In an example of a QR decoder implementation the binarization threshold t(i,j) is calculated as the average of the luminance of the embedding inside the window as

${t_{s}\left( {i,j} \right)} = {\frac{1}{N}{\sum\limits_{{({i,j})} \in W}\; {Y_{s}\left( {i,j} \right)}}}$ ${t_{c}\left( {i,j} \right)} = {\frac{1}{N}{\sum\limits_{{({i,j})} \in W}\; {Y_{c}\left( {i,j} \right)}}}$

Different models can be assumed for the probability distribution of the threshold depending on the concentration of QR modules and the type of detector used to acquire the images. In an example it can be assumed that the thresholds have a Gaussian distribution with mean

$\mu_{c} = {{\frac{{\alpha_{c}n_{\alpha_{c}}} + {\beta_{c}n_{\beta_{c}}}}{N}\mspace{14mu} {and}\mspace{14mu} \mu_{s}} = \frac{{\alpha_{s}n_{\alpha_{s}}} + {\beta_{s}n_{\beta_{s}}}}{N}}$

corresponding to the concealed and standard image respectively. The values of n_(α) _(c) , n_(γ) _(c) , n_(α) _(s) , n_(β) _(s) , correspond to the number of pixels in the window with corresponding values in the QR codes Qs(i, j)=0, Qs(i, j)=1 , Qc(i, j)=0 and Qc(i, j)=1 respectively. The standard deviation a of each threshold corresponds to the noise at the detector, yielding the model for the probability of error given by

$P_{{Qc}_{err}} = {{{\Phi \left( \frac{\alpha_{c} - \mu_{c}}{\sigma} \right)}p_{0}^{c}} - {{\Phi \left( \frac{\beta_{c} - \mu_{c}}{\sigma} \right)}p_{1}^{c}} + {p_{1}^{c}\mspace{14mu} {and}}}$ $P_{{Qc}_{err}} = {{{\Phi \left( \frac{\alpha_{s} - \mu_{s}}{\sigma} \right)}p_{0}^{s}} - {{\Phi \left( \frac{\beta_{s} - \mu_{s}}{\sigma} \right)}p_{1}^{s}} + p_{1}^{s}}$

where

${p_{1}^{s} = \frac{n_{\beta_{s}}}{N}},{p_{0}^{s} = \frac{n_{\alpha_{s}}}{N}},{p_{1}^{c} = \frac{n_{\alpha_{c}}}{N}},{p_{1}^{c} = \frac{n_{\beta_{c}}}{N}}$

are the probability of having a QR module with value 0 or 1 inside the local window.

Luminance Optimization Process

In the case where no image representation is provided and the embedding is generated in color, the optimization of the luminance parameters of α_(s)β_(s)α_(c)β_(c) is formulated as

${\left( {\alpha_{s},\beta_{s},\alpha_{c},\beta_{c}} \right) = {\min\limits_{{\alpha_{s}\beta_{s}\alpha_{c}\beta_{c,}r},g,b}{J\left( {r,g,b} \right)}}}\;$ ${subject}\mspace{14mu} {to}\mspace{14mu} \begin{matrix} {{P_{{QS}_{err}}\left( {\alpha_{c}\beta_{c}} \right)} \leq P_{\max}} \\ {{P_{{Qc}_{err}}\left( {\alpha_{c}\beta_{c}} \right)} \leq P_{\max}} \\ {{g\left( {{\alpha_{s}\beta_{s}\alpha_{c}\beta_{c}},r,g,b} \right)} = 0} \end{matrix}$

Where J(r, g, b) is distance metric between the colors corresponding to all possible combinations of QR code values. The colors corresponding to each combination [Qs(i, j)=0, Qc(i, j)=1], [Qs(i, j)=1, Qc(i, j)=0], [Qs(i, j)=1, Qc(i, j)=1], [Qs(i, j)=0, Qc(i, j)=1 are denoted as (r₀₀, g₀₀, b₀₀), (r₀₁, g₀₁, b₀₁), (r₁₀, g₁₀, b₁₀), (r₁₁, g₁₁, b₁₁) respectively, and the cost function to be optimized is defined as

${J\left( {\alpha_{s}\beta_{s}\alpha_{c}\beta_{c}} \right)} = {\frac{1}{{{\left( {r_{00},g_{00},b_{00}} \right) - \left( {r_{10},g_{10},b_{10}} \right)}}^{2}} + \frac{1}{{{\left( {r_{01},g_{01},b_{01}} \right) - \left( {r_{11},g_{11},b_{11}} \right)}}^{2}} + \frac{1}{{{\left( {r_{00},g_{00},b_{00}} \right) - \left( {r_{01},g_{01},b_{01}} \right)}}^{2}} + \frac{1}{{{\left( {r_{10},g_{10},b_{10}} \right) - \left( {r_{11},g_{11},b_{11}} \right)}}^{2}}}$

The equality constraint in the optimization problem, g(α_(s)β_(s)α_(c)β_(c)β_(c), h_(r), h_(g), h_(b))=0 enforces the relation between the color components of the embedding and the intensity images Y_(c) and Y_(s). This relationship involves the Spectral mask calculated from the first set of cryptographic keys and the standard weight used to calculated the intensity image at a standard detector.

In another example where an image representation is provided as an input the optimization problem can be defined as

${\underset{\gamma,\delta,\beta_{c},\alpha_{c}}{\min\limits_{\beta,\alpha,\beta_{s},\alpha_{s}}}{J\left( {\beta,\alpha,\beta_{s},\alpha_{s},\gamma,\delta,\beta_{c},\alpha_{c}} \right)}}\;$ ${subject}\mspace{14mu} {to}{\mspace{11mu} \mspace{14mu}}\begin{matrix} {{P_{{QS}_{err}}\left( {\beta,\alpha,\beta_{s},\alpha_{s}} \right)} \leq P_{\max}} \\ {{P_{{Qc}_{err}}\left( {\gamma,\delta,\beta_{c},\alpha_{c}} \right)} \leq P_{\max}} \\ {{g\left( {{\alpha_{s}\beta_{s}\alpha_{c}\beta_{c}},r,g,b} \right)} = 0} \end{matrix}$

where g(α_(s)β_(s)α_(c)β_(c), r, g, b)=0 is an inequality constraint which relates the modified luminace of concealed and standard QR embedding embedding to the final color of the embedded pixel.

The cost function in this case measures the visual distortion between the standard image embedding and the image representation. Some examples of possible metrics that can be used are, the filtered mean square error between the intensity values of the embedded image and the original image

$J = {\frac{1}{N}{{h*\left( {Y_{s} - Y} \right)}}}$

Another example is the combination of the filtered mean square error and the mean Structural Similarity Metric (MSSIM) defined by Wang et al. in “Image quality assessment: From error visibility to structural similarity,” IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004, which is hereby incorporated herein by reference.

$J = {{\frac{1}{2}\left( {1 - {{MSSIM}\left( {Y_{s},Y} \right)}} \right)} + {\frac{1}{N}{{h*\left( {Y_{s} - Y} \right)}}}}$

In these two cases h is a filter modeling the low pass characteristics of the human visual system. The reference image Y in this case can be the original graphic representation or the output of the information hiding module after embeds additional information into the image itself by methods such as but not limited to watermarking.

As one exemplary application of the present invention, the embedded code can be in the form of an erasable tattoo on human skin. The tattoo is invisible to human eye or camera. It is only revealed when it is illuminated with a NIR laser light, it will emit visible spectrum via optical up-conversion which can be sensed by naked eye or standard camera by placing a NIR blocking filter. It has many utilities such as for patient and medical treatment ID for preventing treatment error.

Decoding Process

The decoding process is illustrated in FIG. 3. Standard and concealed QR codes are obtained based on individual pixels or groups of pixels from the color or grayscale layers of the embedding. In an example of this process the concealed QR code image denoted by Yc and represented as an intensity matrix is obtained as a linear combination of the spectral layers of the captured embedding such as Red, Green and Blue or Near Infrared. The standard QR code image is denoted by Ys and is calculated from the red, green and blue component of the captured image by means of the standard luminance weights denoted as (a,b,c). The set of linear coefficients denoted as {wr_(ij), wg_(ij), wb_(ij), wir_(ij) . . . } used to calculate concealed QR code image Yc can be generated using a set of decryption keys.

After generating the two QR code images standard or modified QR decoders recover the standard or concealed message. The concealed message can be encrypted or unencrypted. For the case where the concealed message is encrypted a second set of decryption keys is required for its decryption. If additional information was hidden in the visual layers of the embedding by means of watermarking or other embedding process, this information is recovered from the captured embedded code at this stage.

In the foregoing specification, specific embodiments of the present invention have been described. However, one of ordinary skill in the art appreciates that various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of present invention. The benefits, advantages, solutions to problems, and any element(s) that may cause any benefit, advantage, or solution to occur or become more pronounced are not to be construed as a critical, required, or essential features or elements of any or all the claims. The invention is defined solely by the appended claims including any amendments made during the pendency of this application and all equivalents of those claims as issued. 

What is claimed is:
 1. A method for generating an embedded image comprising a standard two dimensional Quick Response (QR) code and a secondary QR code, the method comprising the steps of: a) Obtaining by a processor, a graphic image wherein the graphic image is represented as a matrix with M rows and N columns; b) Obtaining a two dimensional QR code represented as a matrix with M rows and N columns, generated from a public message; c) Obtaining a second two dimensional QR code represented as a matrix with M rows and N columns of pixels from a concealed message; d) Obtaining a Spectral Mask represented as a set of matrices with M rows and N columns of pixels; e) Subdividing the M by N graphic image matrix intro sub-blocks of m rows and n columns of pixels where m is less than M and n is less than N; f) Subdividing the First two dimensional QR code into sub-blocks of m rows and n columns wherein each sub-block corresponds to a sub-block of the original image; g) Subdividing the Second two dimensional QR code into sub-blocks of m rows and n columns wherein each sub-block corresponds to a sub-block of the original image; and h) Subdividing the set of matrices comprising the Spectral masks into sub-blocks of m by n pixels corresponding to a sub-block of the original image.
 2. The method of claim 1, wherein the step of identifying the pixels in the graphic image suitable for luminance modification comprises: a) Obtaining a first set of center pixels on corresponding sub-blocks obtained from the First and Second QR codes and the graphic representation; and b) Obtaining a second set of luminance modified pixels on corresponding sub-blocks by applying a filtering operation on the sub-blocks obtained from the First and Second QR codes and the graphic representation.
 3. The method of claim 2, further comprising a step of determining an optimal value for modified pixels corresponding to the first and second QR codes wherein the cost function calculates distortion of the embedded luminance image with respect to the original image.
 4. The method of claim 2, wherein the cost function calculates the color difference between a fixed set of colors corresponding to combinations of binary pixels in the first and second QR code.
 5. The method of claim 3, wherein the encoded message in the second QR code is a set of bit sequences representing but not limited to biometric features such as fingerprints, coded fingerprint representations, iris imagery, iris coded representation, biometric hashes, palm print, and portraits.
 6. The method of claim 4, wherein the encoded message in the second QR code is a set of bit sequences representing but not limited to biometric features such as fingerprints, coded fingerprint representations, iris imagery, iris coded representation, biometric hashes, palm print, and portraits.
 7. The method of claim 4, wherein the data are encoded in a graphic image where the encrypted bit string is embedded into sub cells of the standard QR code so as to increase the capacity of encrypted data embedding.
 8. The method of claim 7, wherein the encrypted data are encoded into sub cells within a QR code cell, providing similar gray scale luminance to a standard QR code.
 9. The method of claim 5, wherein the encryption uses public key cryptography to produce the cypher text to be embedded in the QR code and wherein a private key is used to extract the biometric bit sequences.
 10. The method of claim 5, wherein any of a number of public key encryption systems is used such as pretty good privacy (PGP) systems.
 11. The method of claim 5, wherein the symmetric or public key is configured to randomly select the color/grayscale space dimensions on a pixel by pixel, or group of pixels by group of pixels basis, so that the secure bit string sequence is embedded into a subspace of the ultraviolet, visible, and infrared spectral bands such as, but not limited to RGB, NIR, SWIR UV, CYM or CMYK color spaces.
 12. The method of claim 2, wherein the luminance of the modified images is the multiplication of a color image by a subset of the spectral masks.
 13. The method of claim 12, wherein the luminance levels of the modified images are selected to minimize the difference with respect to the Second QR code, and the first QR code respectively.
 14. The method of claim 5, wherein the embedded code is in the form of an erasable tattoo on human skin, wherein the tattoo is invisible to human eye or camera and is only revealed when illuminated with a near infrared (NIR) light.
 15. A system for encoding data into a graphic image, the system comprising: a) A data storage; b) At least one user interface element; and c) Network interface and a processor coupled to the data storage, the at least one use interface element and the network interface, wherein the processor is programmed with machine readable instruction for controlling the system to perform functions, including functions to: i) Receive via at least one user interface element, data in a message for encoding; ii) Generate two Quick Response (QR) codes from the data wherein the QR code is represented as a matrix with M rows and N columns and where each element of the matrix is one of two unique values; iii) Generate the second QR code using public key cryptography to produce the cypher text to be embedded in the QR code; iv) Retrieve a biometric or secure bit strings to embed in a second QR code pattern; v) Select pixels to be modified in the First and Second QR code; vi) Optimize luminance of selected pixels and return a set of optimal values to be used in the generation of the color embedding; vii) Generate a graphic image matrix with M rows and N columns where each of its elements has a value defined as function of the spectral masks and the optimized luminance images; and viii) Display the generated image on a display unit such as a LED displays, LCD display, E-Ink (electrophoretic ink), backlit displays, or light boxes.
 16. The system of claim 15, further comprising a reader camera equipped with a specially designed optic spectral filters implementing the functions of: a) Block certain optical spectra designed in coordination with the initial coding process so that it can de-mask and reveal hidden information.
 17. The system of claim 16, further comprising an illumination or excitation energy source which causes the changes of specific spectra in all/part of the spatial locations on the code.
 18. The system of claim 17, wherein the illumination or excitation energy sources is within any band of electromagnetic spectrum such as Gamma-ray, x-ray, UV/VIS/NIR/IR, microwave, millimeter waves.
 19. The system of claim 17, whereas the spectra changes is caused by various energy conversion mechanisms, such as x-ray fluorescent effect, fluorescent effect, Raman effect, wavelength up-conversion, multi-photon emission effect, other non-linear effect such as second harmonic generation (SHG).
 20. The system of claim 17, wherein different codes are detected and decoded at the different time of a day wherein the QR code is under the illumination of the natural sun light during the day and artificial light during the night.
 21. The system of claim 15, wherein the graphic image matrix is divided into a set of image sequences which are generated through a two dimensional micro lens array or micro-diffractive optic element or digital optical elements (DOE) array or holographic elements.
 22. The system of claim 15, wherein the generated embedding is on a set of lenticular image sequences.
 23. The system of claim 15, wherein the embedding is on a sequence of standard QR codes displayed on monitors, LED displays, LCD displays, E-Ink (electrophoretic ink), backlit displays, or light boxes. 